package com.yedean.factory.context.event;

import com.yedean.factory.context.ApplicationEvent;
import com.yedean.factory.context.ApplicationListener;

import java.util.Collection;

/**
 * SimpleApplicationEventMulticaster
 *
 * @author yedean
 * @date 2022/7/15
 */
public class SimpleApplicationEventMulticaster extends AbstractApplicationEventMulticaster{
    @Override
    public void multicastEvent(ApplicationEvent event) {
       getApplicationListeners(event).forEach(x->x.onApplicationEvent(event));
    }
    
}
